package io.coderyeah.product.service;

import io.coderyeah.basic.Result;
import io.coderyeah.product.domain.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import io.coderyeah.product.dto.ProDTO;

import java.util.List;

/**
* @author coderyeah
* @description 针对表【t_product】的数据库操作Service
* @createDate 2022-09-27 09:51:42
*/
public interface ProductService extends IService<Product> {

    Result saveOrModify(Product product);

    List<Product> getAllPros(ProDTO proDTO);

    Result onsale(List<Long> ids);

    Result offsale(List<Long> ids);

    Result getPetById(Long id);
}
